package com.daifeng.gulimall.order.service;

import com.daifeng.gulimall.order.vo.OrderConfirmVo;
import com.daifeng.gulimall.order.vo.OrderSubmitVo;
import com.daifeng.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.concurrent.ExecutionException;

public interface OrderTradeService {

    OrderConfirmVo toTrade() throws ExecutionException, InterruptedException;

    /**
     * 提交订单
     * @param orderSubmitVo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);
}
